<template>
    <Navigator />
    <!-- 占位块 -->
    <div class="h-12 w-full"></div>

    <router-view></router-view>
</template>

<script lang="ts" setup>
import Navigator from "@comps/navigator.vue"

import { StaticData } from "@utils/utils";
import { onMounted } from "vue";
import { state } from "@utils/store";
import axios from 'axios'

onMounted(async () => {
    //获取静态数据
    await StaticData()
    //获取小程序调用凭证
    const data = await axios.get('http://localhost:4000/getWeChatUrlScheme')
    state.weChat.link = data.data.openlink
})



</script>

<style lang="scss">
body {
    color: black;
}
</style>
